package com.splant.android.smart.ModelLevel;

import android.widget.FrameLayout;
import android.widget.ImageView;

/**
 * Created by Administrator on 2017/8/23.
 */

public class MapImage {

    private int left;
    private int top;

    private int minTop;
    private int maxTop;
    private int minLeft;
    private int maxLeft;
    private int width;
    private int height;
    private float whScale;
    private float hwScale;

    private int oriWidth;
    private int oriHeight;

    private ImageView imageMap;

    public void setLeft(int left)
    {
        this.left=left;
    }
    public int getLeft()
    {
        return this.left;
    }
    public void setTop(int top)
    {
        this.top=top;
    }
    public int getTop()
    {
        return this.top;
    }
    public void setImageMap(ImageView imageMap)
    {
        this.imageMap=imageMap;
    }

    public void setMinLeft(int minLeft)
    {
        this.minLeft=minLeft;
    }
    public int getMinLeft()
    {
        return this.minLeft;
    }
    public void setMaxLeft(int maxLeft)
    {
        this.maxLeft=maxLeft;
    }
    public int getMaxLeft()
    {
        return this.maxLeft;
    }
    public void setMinTop(int minTop)
    {
        this.minTop=minTop;
    }
    public int getMinTop()
    {
        return this.minTop;
    }
    public void setMaxTop(int maxTop)
    {
        this.maxTop=maxTop;
    }
    public int getMaxTop()
    {
        return this.maxTop;
    }

    public void setWidth(int width)
    {
        this.width=width;
    }
    public int getWidth()
    {
        return this.width;
    }
    public void setHeight(int height)
    {
        this.height=height;
    }
    public int getHeight()
    {
        return this.height;
    }

    public void showNewState()
    {
        FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(width, height);
        params.setMargins(left, top, 0, 0);

        imageMap.setLayoutParams(params);
    }

    public void setWhScale(float whScale)
    {
        this.whScale=whScale;
    }
    public float getWhScale()
    {
        return this.whScale;
    }

    public void setHwScale(float hwScale)
    {
        this.hwScale=hwScale;
    }
    public float getHwScale()
    {
        return this.hwScale;
    }
    public ImageView getImageMap()
    {
        return this.imageMap;
    }

    public void setOriWidth(int oriWidth)
    {
        this.oriWidth=oriWidth;
    }
    public int getOriWidth()
    {
        return this.oriWidth;
    }
    public void setOriHeight(int oriHeight)
    {
        this.oriHeight=oriHeight;
    }
    public int getOriHeight()
    {
        return this.oriHeight;
    }

}
